<?php $ui = $this->load->library('Ui'); ?>
<h2>Add Page</h2>

<?php
		$header = 	$ui->makeOption('<a href="#" rel="#overlay">Get Help With This Page</a>' . ' '.
				anchor('pages/admin', 'Manage Pages') . ' '.
				anchor('pages/admin/add', 'Add a Page'). ' ', 1 ).
				'<div class="clear"></div>';
		$content = '<form method="POST">
		<table cellspacing="1" class="hidden-table" cellpadding="5" width="100%">
			<tr><td>Page Name: </td><td><input type="text" name="page_link" class="form" /></td></tr>
			<tr><td>Page Title: </td><td><input type="text" name="page_title" class="form" /></td></tr>
            <tr><td>Navigation Order: </td><td><input type="text" name="navigation_order" class="form" /></td></tr>
            <tr><td>Show On Front Navigation:</td><td><select name="front_nav"><option value="yes">Yes</option><option value="no">No</option></select></td></tr>
			<tr><td valign="top">Content: </td><td><textarea name="page_content" style="width: 700px;height: 300px;"></textarea></td></tr>
			<tr><td colspan="2"><input type="submit" name="page_add" value="Add Page!" /></td></tr>
		</table>
	</form>';
	
	echo $ui->makeDialog('Add a Page'.$header, $content, 'maximize center');
?>

	

<div class="overlay" id="overlay">

    <!-- here is the content for overlay, can be anything -->
    <h2 style="margin:10px 0">Help! <em>Using the Add Page feature.</em></h2>

    <p>
            <strong>Page Name</strong><br />
            <span class="help">URL friendly name of the page. Should be Lowercase Alpha-Numeric with hyphens for spaces</span><br /><br />
            <strong>Page Title</strong><br />
            <span class="help">Page title is a user friendly name for the page. It's the text that is displayed when your theme wants to show the name of the current page. It can Be alpha-numeric and contain dashes or underscores.</span><br /><br />
            <strong>Navigation Order</strong><br />
            <span class="help">If your Theme uses a dynamic navigation this is the order the page link will show up. You should specify an Integer.</span><br /><br />
            <strong>Show On Front Navigation</strong><br />
            <span class="help">If your theme uses a dynamic navigation this control will dictate whether or not a link to the page is shown on the front end of the site.</span><br /><br />
            <strong>Content</strong><br />
            <span class="help">The content for the page. You can use the WYSIWYG editor or inject your own HTML in to the form.</span><br /><br />
    </p>

</div>
